// MyFamily - XML based genealogy program.
// Copyright (C) 2006  Doug Swisher
// See the file COPYING.txt for license details.

using System;
using System.Windows.Forms;

using DataModel;


namespace CommonGui
{
    public partial class LoadResultsDialog : Form
    {
        private LoadResults loadResults;

        public LoadResultsDialog(LoadResults loadResults)
        {
            this.loadResults = loadResults;

            InitializeComponent();
        }

        private void LoadResultsDialog_Load(object sender, EventArgs e)
        {
            this.IndividualCountTextBox.Text = this.loadResults.IndividualCount.ToString();
            this.PersonaCountTextBox.Text = this.loadResults.PersonaCount.ToString();
            this.ExtractCountTextBox.Text = this.loadResults.ExtractCount.ToString();
            this.SourceCountTextBox.Text = this.loadResults.SourceCount.ToString();

            this.WarningCountTextBox.Text = this.loadResults.WarningCount.ToString();

            foreach (string message in loadResults.Messages)
            {
                this.MessagesTextBox.AppendText(message + "\r\n");
            }
        }

        private void MyOkButton_Click(object sender, EventArgs e)
        {

        }

    }
}